//
//  UserNavigationController.m
//  danpin
//
//  Created by chuangjia on 12/8/15.
//  Copyright (c) 2015 chuangjia. All rights reserved.
//

#import "UserNavigationController.h"
#import "UserLoginVC.h"

@interface UserNavigationController ()

@end

@implementation UserNavigationController

+ (instancetype)newWithCameraDelegate:(id<UserDelegate>)delegate
{
    UserNavigationController *navigationController = [super new];
    navigationController.navigationBarHidden = YES;
    [navigationController setEnableBackGesture:YES];
    if (navigationController) {
        [navigationController setupAuthorizedWithDelegate:delegate];
    }
    
    return navigationController;
}
- (void)setupAuthorizedWithDelegate:(id<UserDelegate>)delegate
{
    UserLoginVC *viewController = [UserLoginVC new];
    viewController.delegate = delegate;
    self.viewControllers = @[viewController];
}

@end
